projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
763daf4
)
Check if XRRGetOutputInfo returned a null pointer.
author
fiddlerwoaroof
<fiddlerwoaroof+gb@gmail.com>
Thu, 3 Mar 2016 15:30:00 +0000
(10:30 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 4 Mar 2016 02:31:26 +0000
(21:31 -0500)
Fixes bug 763023: in certain circumstances, XRRGetOutputInfo will return
a null pointer. This commit adds a check to detect and handle this
return value.
gdk/x11/gdkscreen-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkscreen-x11.c
b/gdk/x11/gdkscreen-x11.c
index 82b8aa21325fd1e349101ee02766cf16df475b34..063b5979223e790a8a5b316a499277cd3fb00e32 100644
(file)
--- a/
gdk/x11/gdkscreen-x11.c
+++ b/
gdk/x11/gdkscreen-x11.c
@@
-653,6
+653,9
@@
init_randr15 (GdkScreen *screen)
XRRGetOutputInfo (x11_screen->xdisplay, resources, output);
GdkX11Monitor monitor;
+ if (output_info == NULL)
+ continue;
+
/* Non RandR1.2+ X driver have output name "default" */
randr12_compat |= !g_strcmp0 (output_info->name, "default");